package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/2 14:22
 * @DESCRIBE 用户评价
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "comment")
public class Comment extends Model {
    private Integer id;

    private Integer userId;   // 评价用户
    @Ignore
    private User    user;

    private Integer courseId; // 评价对应的课程
    @Ignore
    private Course  course;

    @Ignore
    private LearnCourse learnCourse;

    private Integer star;     // 评价星级
    private String  content;  // 评价内容
    private String  time;     // 评价时间

}
